/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.just.dusin.ooii.database;

import java.util.List;

/**
 *
 * @author Administrator
 */
public interface IOrgDao {
    /**	
	 * @param Org
	 * @return
	 * @throws Exception
	 */
	public boolean doCreate(Org org) throws Exception;
	/**
	 * ��ݿ���޸Ĳ���
	 * @param Org
	 * @return
	 * @throws Exception
	 */
	public boolean doUpdate(Org org) throws Exception;
	/**
	 * ��ݿ��ɾ�����
	 * @param pid
	 * @return
	 * @throws Exception
	 */
	public boolean doDelete(long[] pids) throws Exception;
	/**
	 * ݿ�
	 * @param pid
	 * @return
	 * @throws Exception
	 */
	public Org findById(long pid) throws Exception;
	
        /**
	 * 	 * @param beginIndex
         * ��
         * @param size 
         * 
         * @return
	 * @throws Exception
	 */
	public List<Org> findAll(int beginIndex,int size,String orgCode) throws Exception;
        
        public List<SimpleOrganBean> findAllSimpleMine(String orgCode) throws Exception;
        
        
        public int getTotalSize();
}
